package com.ypz.reggie.dto;

import com.ypz.reggie.entity.Dish;
import com.ypz.reggie.entity.DishFlavor;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.ArrayList;
import java.util.List;

/**
 * 此处继承了Dish所以有Dish原来的属性
 * 该类是对Dish的一个扩展
 */
@Data
@ApiModel(value = "菜单DTO")
public class DishDto extends Dish {

    @ApiModelProperty(value = "口味")
    private List<DishFlavor> flavors = new ArrayList<>();

    private String categoryName;

    private Integer copies;
}
